Integrand size = 23, antiderivative size = 24 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {(-a-b x)^{-n} (a+b x)^n}{x} \]
[Out]
Time = 0.00 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {23, 30} \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {(-a-b x)^{-n} (a+b x)^n}{x} \]
[In]
[Out]
Rule 23
Rule 30
Rubi steps \begin{align*} \text {integral}& = \left ((-a-b x)^{-n} (a+b x)^n\right ) \int \frac {1}{x^2} \, dx \\ & = -\frac {(-a-b x)^{-n} (a+b x)^n}{x} \\ \end{align*}
Time = 0.00 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {(-a-b x)^{-n} (a+b x)^n}{x} \]
[In]
[Out]
Time = 1.80 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.04
method | result | size |
gosper | \(-\frac {\left (b x +a \right )^{n} \left (-b x -a \right )^{-n}}{x}\) | \(25\) |
parallelrisch | \(-\frac {\left (b x +a \right )^{n} \left (-b x -a \right )^{-n}}{x}\) | \(25\) |
risch | \(-\frac {{\mathrm e}^{-i n \pi \left (\operatorname {csgn}\left (i \left (b x +a \right )\right )^{3}-\operatorname {csgn}\left (i \left (b x +a \right )\right )^{2}+1\right )}}{x}\) | \(38\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.22 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.42 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {e^{\left (i \, \pi n\right )}}{x} \]
[In]
[Out]
Time = 1.23 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.71 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=- \frac {\left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{x} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.33 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {\left (-1\right )^{n}}{x} \]
[In]
[Out]
\[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=\int { \frac {{\left (b x + a\right )}^{n}}{{\left (-b x - a\right )}^{n} x^{2}} \,d x } \]
[In]
[Out]
Time = 1.10 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.00 \[ \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^2} \, dx=-\frac {{\left (a+b\,x\right )}^n}{x\,{\left (-a-b\,x\right )}^n} \]
[In]
[Out]